#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#include<math.h>
#include<float.h>
#include<stdarg.h>

#define num_char 40 /* # of characters in command  */

struct element_s {
   int unsigned id_vertex;
   struct element_s   *next;
   struct element_s   *prev;
   struct element_s   *next_q;
   struct element_s   *prev_q;
};

typedef   struct element_s *  element;

struct  linked_list_s{
	element head;
	element tail;
};

typedef   struct linked_list_s *  linked_list;

typedef linked_list queue;
/* Note: you can implement the queue as a singly linked-list, and modify p2p.h and p2p.c files as you wish */

#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#include<math.h>
#include<float.h>
#include<stdarg.h>

#define num_char 40 /* # of characters in command  */

struct element_s {
   int unsigned id_vertex;
   struct element_s   *next;
   struct element_s   *prev;
   struct element_s   *next_q;
   struct element_s   *prev_q;
};

typedef   struct element_s *  element;

struct  linked_list_s{
	element head;
	element tail;
};

typedef   struct linked_list_s *  linked_list;

typedef linked_list queue;
/* Note: you can implement the queue as a singly linked-list, and modify p2p.h and p2p.c files as you wish */


typedef struct  vertex_s * vertex;

struct vertex_s {
   int unsigned ID;
   char name [num_char];
   char type [num_char];
   vertex parent;
   int unsigned *blocks;
   linked_list edges;
};





extern vertex * vertexArr;
extern int arrSize; /*size of arrSize */
extern int currentID;
extern int numOfBlocks;

int only_whitespaces(char * str);


typedef struct  vertex_s * vertex;

struct vertex_s {
   int unsigned ID;
   char name [num_char];
   char type [num_char];
   vertex parent;
   int unsigned *blocks;
   linked_list edges;
};





extern vertex * vertexArr;
extern int arrSize; /*size of arrSize */
extern int currentID;
extern int numOfBlocks;

int only_whitespaces(char * str);

